{% extends 'base.html' %}
{% block title %}  - wild search {% endblock %}

{% block onload %}
onload="document.getElementById('fn_txt').focus()"
{% endblock %}

{% block content %}

<div id="content" style="position:absolute; top:20px; left:0px; background-color: #1A1A1A; layer-background-color: #1A1A1A;">
<table width="800">
<tr>
	  <p><span style="font-size:14px;color:#CCC">Wild search</span></p> 
	 	Artist <input name="search" type="radio" value="/user/search" checked /> 
	  Video <input name="search" type="radio" value="/user/search_video"  onChange="window.location=this.value;"/> 
	  
	  
</tr>
<tr>
<td>
	<form method="post" action="/user/search/">
		
		<input type="text" size="40" id="fn_txt" name="fn_txt" value="{{fn}}"> 
		<input type="submit" value="Search"><br/>
	</form>
</td>

</tr>
<tr>
<td><br></br>
Artist list | {% if artists.has_previous %} <a href="?page={{ artists.previous_page_number }}" title="Previous page"><<<</a> {% endif %}
		Page {{ artists.number }} of {{ artists.paginator.num_pages }}.
		{% if artists.has_next %}
		<a href="?page={{ artists.next_page_number }}" title="Next page">>>></a>
		{% endif %}<br></br>
</td>
</tr>
</table>
	
	<table width="800">
		<tr>
        	<th width="75"></th>
			<th width="75">Last name</th>
			<th width="75">First name</th>
			<th width="100">Job title</th>
			<th width="50">Unavailable</th>
            <th width="100">Special skill</th>
			<th width="100">Note</th>
		</tr>
		{% for artist in artists.object_list %}
		<tr>
        	<td>
            
            
            	{% load zdy_filter %}
				<a href="/"><img src="/{{artist|get_user}}.jpg" height="50"></a>

            </td>
<td><a href="/user/{{artist.id}}/" title="View profile">{{artist.last_name}}</a></td>
			<td><a href="/user/{{artist.id}}/" title="View profile">{{artist.first_name}}</a></td>
			<td><a href="/user/{{artist.id}}/" title="View profile">{{artist.get_profile.role}}</a></td>
			<td>
				{% for temp in ues %}
				{% if temp.user.id == artist.id %}
                {% if temp.star != temp.end %}
				{{temp.start}}<br/>{{temp.end}}
				{% endif %}
                {% endif %}
				{% endfor %}
			</td>
            <td><a href="/user/{{artist.id}}/" title="View profile">{{artist.get_profile.customer_skills}}</a></td>
			<td>
				<form action="/user/note/{{artist.id}}/?url=/user/search/" method="post">
					<input name="note" maxlength="100" size="35" type="text" value="{{artist.get_profile.note}}"/>
				</form>
			</td>			
		</tr>
		{% endfor %}
	</table>
</div>
{% endblock %}